package com.wufan.day03;

/**
 * @author SongWufan
 * @date 2021/3/7 19:49
 */
public class ArrayUtilsTest {
    public static void main(String[] args) {
        ArrayUtils arrayUtils = new ArrayUtils();
        int[] arr = new int[]{32,23,75,86,23,76,12,-53};
        int max = arrayUtils.getMax(arr);
        System.out.println("最大值为："+max);

        System.out.println("排序前：");
        arrayUtils.print(arr);

        arrayUtils.sort(arr);
        System.out.println();
        System.out.println("排序后：");
        arrayUtils.print(arr);
        System.out.println();
        System.out.println("查找：");
        int index = arrayUtils.getIndex(arr, 23);
        System.out.println("索引地址："+index);
    }
}
